package com.woniu.cq.medical.service.impl;

import com.woniu.cq.medical.dao.mymapper.My_ProjectInfoMapper;
import com.woniu.cq.medical.entity.ProjectInfo;
import com.woniu.cq.medical.dao.ProjectInfoMapper;
import com.woniu.cq.medical.service.ProjectInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2020-09-08
 */
@Service
public class ProjectInfoServiceImpl extends ServiceImpl<ProjectInfoMapper, ProjectInfo> implements ProjectInfoService {

    @Autowired
    private My_ProjectInfoMapper myProjectInfoMapper;

    /**
     * 根据大的检查类别的ID查询出小的检查类别
     * @param id
     * @return 小的检查类别的集合
     */
    @Override
    public List<ProjectInfo> selectProjectInfoByTypeId(Integer id) {
        List<ProjectInfo> projectInfos = myProjectInfoMapper.selectProjectInfoByTypeId(id);
        return projectInfos;
    }
}
